/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(20, 20, 20, 0.8) 0%, rgba(0, 0, 0, 0.9) 90%);
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(100, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #c00;
    text-shadow: 0 0 10px rgba(200, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

header p {
    color: #999;
    font-style: italic;
}

/* 海龟汤容器 */
.soup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

/* 海龟汤碗样式 */
.soup-bowl {
    position: relative;
    width: 200px;
    height: 100px;
    background-color: #222;
    border: 5px solid #333;
    border-top: none;
    border-radius: 0 0 100px 100px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(100, 0, 0, 0.3);
}

.soup-liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, #300, #500);
    border-radius: 0 0 90px 90px;
    opacity: 0.8;
}

/* 海龟样式 */
.turtle {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background-color: #163;
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 0 5px rgba(0, 50, 0, 0.5);
}

.turtle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 15px;
    width: 10px;
    height: 7px;
    background-color: #163;
    border-radius: 50% 50% 0 0;
}

.turtle::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 8px;
    height: 5px;
    background-color: #163;
    border-radius: 50%;
    box-shadow: 
        20px 0 0 #163,
        10px 5px 0 #163,
        20px 5px 0 #163;
}

/* 气泡动画 */
.bubbles {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: 0;
    animation: rise 5s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 5px;
    height: 5px;
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 50%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 70%;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 4px;
    height: 4px;
    left: 40%;
    animation-delay: 3s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-80px) scale(2);
        opacity: 0;
    }
}

/* 内容区域 */
.soup-content {
    width: 100%;
    text-align: center;
    margin: 1rem 0;
    min-height: 200px;
}

#welcome-message h2 {
    color: #c00;
    margin-bottom: 1rem;
}

#soup-surface, #soup-bottom {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 1.5rem;
    border: 1px solid #333;
    border-radius: 5px;
    margin-bottom: 1rem;
}

#soup-surface h2 {
    color: #c00;
    margin-bottom: 1rem;
}

#soup-bottom h3 {
    color: #900;
    margin-bottom: 1rem;
}

#surface-text, #bottom-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

/* 按钮样式 */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(to bottom, #300, #500);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(100, 0, 0, 0.3);
}

.btn:hover {
    background: linear-gradient(to bottom, #500, #700);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(200, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(0);
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* 工具类 */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
        width: 95%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}